package com.goyourfly.multiple.adapter.viewholder.color;

import android.graphics.drawable.Drawable;
import android.support.v7.widget.RecyclerView;
import android.view.View;

import com.ss.android.article.browser.view.multiselect.viewholder.b;
import com.ss.android.article.browser.view.multiselect.viewholder.color.ValueHolder;

import org.jetbrains.annotations.NotNull;

public final class a extends b {
    final int a;
    @NotNull
    private final ValueHolder d;
    @NotNull
    private final Drawable e;
    @NotNull
    private final Drawable f;


    public a(@NotNull View root, @NotNull RecyclerView.ViewHolder viewHolder, @NotNull com.ss.android.article.browser.view.multiselect.a adapter, int a, @NotNull ValueHolder d, @NotNull Drawable e, @NotNull Drawable f) {
        super(root, viewHolder, adapter);
        this.a = a;
        this.d = d;
        this.e = e;
        this.f = f;
    }

    @NotNull
    private View a() {
        return (View) this.d.getValue();
    }

    public final void a(int i) {
        com.ss.android.article.browser.view.multiselect.e eVar = com.ss.android.article.browser.view.multiselect.e.a;
        if (i == com.ss.android.article.browser.view.multiselect.e.a()) {
            a().setBackgroundDrawable(this.e);
            return;
        }
        com.ss.android.article.browser.view.multiselect.e eVar2 = com.ss.android.article.browser.view.multiselect.e.a;
        if (i == com.ss.android.article.browser.view.multiselect.e.b()) {
            a().setBackgroundDrawable(this.f);
        }
    }
}